<%-- 
    Document   : left
    Created on : Oct 11, 2013, 1:25:23 PM
    Author     : NGUYEN
--%>

<%@page import="DAO.LOAISANPHAMDAO"%>
<%@page import="DTO.LOAISANPHAMDTO"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%!
    ArrayList<LOAISANPHAMDTO> ds = new ArrayList<LOAISANPHAMDTO>();
    LOAISANPHAMDAO dao = new LOAISANPHAMDAO();
%>
<td width="25%">
    <table width="100%" border="1">
        <tr>
            <td bgcolor="#663366">DANH MỤC</td>
        </tr>
        <%
            ds = dao.laydanhsachloaisanpham();  
        %>
        <%
            for(int i=0;i<ds.size();i++)
            {
                int num = ds.get(i).getMaloaisp();
                String ten = ds.get(i).getTenloai();
        %>
        <tr>
            <td bgcolor="#6666FF"><a href="hienthi?maloaisp=<%=num%>"> <%=ten%> </a></td>
        </tr>
        <%}%>
    </table>   
</td>
